System.Xml.XmlException: '<', hexadecimal value 0x3C, is an invalid attribute character. Line 52, position 17.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
at System.Xml.XmlTextReaderImpl.Throw(Int32 pos, String res, String[] args)
at System.Xml.XmlTextReaderImpl.ParseAttributeValueSlow(Int32 curPos, Char quoteChar, NodeData attr)
at System.Xml.XmlTextReaderImpl.ParseAttributes()
at System.Xml.XmlTextReaderImpl.ParseElement()
at System.Xml.XmlTextReaderImpl.ParseElementContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.Xsl.Xslt.XsltInput.ReadNextSiblingHelper()
at System.Xml.Xsl.Xslt.XsltInput.ReadNextSibling()
at System.Xml.Xsl.Xslt.XsltInput.MoveToNextSibling()
at System.Xml.Xsl.Xslt.XsltLoader.LoadInstructions(List1 content, InstructionFlags flags)<br />
at System.Xml.Xsl.Xslt.XsltLoader.LoadLiteralResultElement(Boolean asStylesheet)<br />
at System.Xml.Xsl.Xslt.XsltLoader.LoadInstructions(List1 content, InstructionFlags flags)
at System.Xml.Xsl.Xslt.XsltLoader.LoadTemplate(NsDecl stylesheetNsList)
at System.Xml.Xsl.Xslt.XsltLoader.LoadRealStylesheet()
at System.Xml.Xsl.Xslt.XsltLoader.LoadDocument()
at System.Xml.Xsl.Xslt.XsltLoader.LoadStylesheet(XmlReader reader, Boolean include)[/code]
I'm not 100% if this is the best solution but it felt like a simple one trying to create a page that lists same level nodes of one category.
the category datatype is listboxes, with values suck as "boktips" and "motion". I want to be able to list all the articles within a specific category. so that i can create a menu on the parent node where u can choose between categories and a listing of a few articles from diffrent categories.
ah ok:) well the solution i figured out was mostly chause i learned that if i put the level = 1 it woud also look thrue all the child nodes. Anyway i still aint happy with my solution.
Getting Current page name [solved]
Hey this probably is pretty easy im just very new to both umbraco and XSLT.
[code]
Gonna try to be a bit more clear on what i want to do.
I have a few categories and i want to list all the articles in the category that has the same name as the page i am in.
ive been looking arond for a while now but i cant seem to get how i woud code a for-each where the category equals the page name.
Hi,
And what if you'd try code snippet below?
[code]
Trying that, i got:
[code]Error occured
System.Xml.XmlException: '<', hexadecimal value 0x3C, is an invalid attribute character. Line 52, position 17.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
at System.Xml.XmlTextReaderImpl.Throw(Int32 pos, String res, String[] args)
at System.Xml.XmlTextReaderImpl.ParseAttributeValueSlow(Int32 curPos, Char quoteChar, NodeData attr)
at System.Xml.XmlTextReaderImpl.ParseAttributes()
at System.Xml.XmlTextReaderImpl.ParseElement()
at System.Xml.XmlTextReaderImpl.ParseElementContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.Xsl.Xslt.XsltInput.ReadNextSiblingHelper()
at System.Xml.Xsl.Xslt.XsltInput.ReadNextSibling()
at System.Xml.Xsl.Xslt.XsltInput.MoveToNextSibling()
at System.Xml.Xsl.Xslt.XsltLoader.LoadInstructions(List
1 content, InstructionFlags flags)<br /> at System.Xml.Xsl.Xslt.XsltLoader.LoadLiteralResultElement(Boolean asStylesheet)<br /> at System.Xml.Xsl.Xslt.XsltLoader.LoadInstructions(List
1 content, InstructionFlags flags)at System.Xml.Xsl.Xslt.XsltLoader.LoadTemplate(NsDecl stylesheetNsList)
at System.Xml.Xsl.Xslt.XsltLoader.LoadRealStylesheet()
at System.Xml.Xsl.Xslt.XsltLoader.LoadDocument()
at System.Xml.Xsl.Xslt.XsltLoader.LoadStylesheet(XmlReader reader, Boolean include)[/code]
I'm not 100% if this is the best solution but it felt like a simple one trying to create a page that lists same level nodes of one category.
the category datatype is listboxes, with values suck as "boktips" and "motion". I want to be able to list all the articles within a specific category. so that i can create a menu on the parent node where u can choose between categories and a listing of a few articles from diffrent categories.
Figured out a better solution:)
Great, share it!
Btw, error was due to a missing " at end of for-each statement and a missing closing ] sign.
Regards,
/Dirk
ah ok:) well the solution i figured out was mostly chause i learned that if i put the level = 1 it woud also look thrue all the child nodes. Anyway i still aint happy with my solution.
Created a new thread here:
http://forum.umbraco.org/yafpostsm42018Listing-a-category.aspx#42018
is working on a reply...